package net.butfly.albacore.dao;

import java.io.Serializable;

import net.butfly.albacore.dbo.criteria.Criteria;
import net.butfly.albacore.entity.Entity;

@Deprecated
public interface GenericDAO<E extends Entity<K>, K extends Serializable> extends EntityDAO {
	int count(Criteria criteria);

	void delete(K id);

	void delete(Criteria criteria);

	E load(K id);

	E[] select(Criteria criteria);

	K[] selectID(Criteria criteria, Class<K> clazz);
}
